const { DataTypes } = require('sequelize');
const sequelize = require('../db.js');

const Category = sequelize.define('category', {
  id: {
    type: DataTypes.BIGINT(10),
    primaryKey: true,
    autoIncrement: true
  },
  name: {
    type: DataTypes.STRING,
    allowNull: false
  }
},{
  tableName: 'category'
});

module.exports = Category;